ContentList Server Control

The ContentList server control displays a list of content blocks on a Web page. In contrast to a List Summary, where content must be in a specified folder, the ContentList server control displays content from any Ektron CMS400.NET folder.

When added to a template and visited, a ContentList Summary looks like this.

Depending on the setting you choose for DisplayXslt, you can change information displayed for each content block. See Also: DisplayXslt.

There are two options for how the ContentList server control displays a content list.

Define a content list in a content block's metadata. Then, assign that content block’s ID in the DefaultContentID property. See Also: Using Metadata to Display an Associated Content List

When using this option, an administrator typically sets up the Workarea portion of the process. Then, a developer adds the server control to a Web form and assigns the content block ID and the metadata name to the appropriate properties. Because the content list is assigned to a content’s metadata, you can pass the content ID dynamically in a Web form and display a list for each content block you defined.

Assign a comma-delimited list of content blocks to the ContentIds property. See Also: Using the ContentID Property to Display a Content List

Using the ContentIds process, a developer adds the ContentList server control to Web form. Then, he defines a list of content IDs in the ContentIds property. If the server control or the list in the ContentIds property is deleted, it is not available and will have to be created again.

Previous TopicNext Topic|